#include <fcntl.h>
#include "set_nonblock.h"

void set_nonblock(int fd)
{
    int flag = 0;
    flag = fcntl(fd, F_GETFL, 0);
    fcntl(fd, F_SETFL, flag | O_NONBLOCK);
}